#!/bin/bash

#让sudo命令生效
echo rock | sudo -S ls

#调整分辨率
#echo rock | sudo -S xrandr
#gtf 640 1280 66.4
#cvt 640 1280 66
#sudo xrandr --newmode "640x1280"  76.30  640 680 752 864  1280 1281 1284 1330  -HSync +Vsync
#sudo xrandr --addmode HDMI-1 640x1280
#sudo xrandr --output HDMI-1 --mode 640x1280

# 设置禁止休眠
sudo systemctl mask sleep.target suspend.target hibernate.target hybrid-sleep.target
#取消显示器休眠
sudo xset -dpms
#取消屏保
sudo xset s off

cd ~/gyro
#分享网络
#bash ./data/config/USB-Net.sh
echo rock | sudo -S python3 main.py